package com.bungarus.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by tang on 2018/12/16.
 */
@Configuration
@PropertySource("application.properties")
public class BusiSpringConfig {
    @Value("${spring.redis.host}")
    private String host;

    @Value("${spring.redis.database}")
    private int database;

    @Value("${spring.redis.port}")
    private int port;

    @Value("${spring.redis.password}")
    private String password;

    @Value("${spring.redis.cluster.nodes}")
    private String cluster_nodes;

    @Value("${spring.redis.cluster.max-redirects}")
    private int maxRedirects;

    @Value("${spring.redis.ssl}")
    private boolean ssl;

    @Value("${spring.redis.timeout}")
    private int timeout;

    @Value("${spring.redis.read-timeout}")
    private int readTimeout;

    @Value("${spring.redis.sentinel.master}")
    private String master;

    @Value("${spring.redis.sentinel.nodes}")
    private String sentinel_nodes;

    @Value("${spring.redis.jedis.pool.max-active}")
    private int maxActive;

    @Value("${spring.redis.jedis.pool.max-idle}")
    private int maxIdle;

    @Value("${spring.redis.jedis.pool.max-wait}")
    private int maxWait;

    @Value("${spring.redis.jedis.pool.min-idle}")
    private int minIdle;

    @Value("${bungarus.gs.redis.host}")
    private String gsHost;

    @Value("${bungarus.gs.redis.port}")
    private int gsPort;

    @Value("${bungarus.gs.redis.password}")
    private String gsPassword;

}
